package com.example.demo2.dao;

import com.example.demo2.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Description:
 *
 * @author liuziyang
 * @date 2021/6/29 21:12
 */
public interface UserDao extends JpaRepository<User, Long> {
    /**
     * Find user by username user.
     *
     * @param username the username
     * @return the user
     */
    User findUserByUsername(String username);
}
